import requery from "../../model/axios";
import api from "../../model/api";

export const newsListQuery = (params) => requery({
    method: "get",
    url: api.news.list,
    params
})
export const newsListKeyQuery = (params) => requery({
    method: "get",
    url: api.news.newsList,
    params
})
export const newsQuery = (id) => requery({
    method: "get",
    url: api.news.detail + id,
})
export const commentsQuery = (params) => requery({
    method: "get",
    url: api.news.comments,
    params
})